package com.dzh.service;

import com.dzh.pojo.Books;
import com.dzh.pojo.Student;
import com.dzh.pojo.StudentRes;

import java.util.List;

public interface StudentService {
    //增加一个Book
    int addStudent(StudentRes student);
    //根据id删除一个Book
    int deleteStudentById(int sno);
    //更新Book
    int updateStudent(Student student);
    //根据id查询,返回一个Book
    Student queryStudentById(int sno);
    //查询全部Book,返回list集合
    List<StudentRes> queryAllStudent();
}
